package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AppUserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author tmh
 * @date 2023/8/28 10:34
 * @description leadnews-wemedia下定义的远程接口
 */
@FeignClient("leadnews-wemedia")
public interface IWemediaClient {

    /**
     *
     * @param appUserDTO
     * @return
     */
    @PostMapping("/api/v1/user/adduser")
    ResponseResult addWemediaUser(@RequestBody AppUserDTO appUserDTO);

    @GetMapping("/api/v1/channel/list")
    public ResponseResult getChannels();
}
